package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_ChatLogManage", catalog="Id")
public class EKnowChatLogManage extends BaseEntity<EKnowChatLogManage> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="OldLogId", nameJava="oldLogId", typeDataBase="bigint")
	private Long oldLogId;
	@YsField(nameDataBase="Content", nameJava="content", typeDataBase="text")
	private String content;
	@YsField(nameDataBase="IsSaveKnowledge", nameJava="isSaveKnowledge", typeDataBase="tinyint")
	private Integer isSaveKnowledge;
	@YsField(nameDataBase="KnowledgeTypeId", nameJava="knowledgeTypeId", typeDataBase="bigint")
	private Long knowledgeTypeId;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowChatLogManage setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getOldLogId() {
		return oldLogId;
	}
	public EKnowChatLogManage setOldLogId(Long oldLogId) {
		this.oldLogId = oldLogId;
		return this;
	}
	public String getContent() {
		return content;
	}
	public EKnowChatLogManage setContent(String content) {
		this.content = content;
		return this;
	}
	public Integer getIsSaveKnowledge() {
		return isSaveKnowledge;
	}
	public EKnowChatLogManage setIsSaveKnowledge(Integer isSaveKnowledge) {
		this.isSaveKnowledge = isSaveKnowledge;
		return this;
	}
	public Long getKnowledgeTypeId() {
		return knowledgeTypeId;
	}
	public EKnowChatLogManage setKnowledgeTypeId(Long knowledgeTypeId) {
		this.knowledgeTypeId = knowledgeTypeId;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public EKnowChatLogManage setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowChatLogManage setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowChatLogManage setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowChatLogManage setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowChatLogManage eKnowChatLogManage(
		Long oldLogId,
		String content,
		Integer isSaveKnowledge,
		Long knowledgeTypeId,
		String userId,
		Integer status
			) {
		EKnowChatLogManage entity = new EKnowChatLogManage();
		entity.setOldLogId(oldLogId);
		entity.setContent(content);
		entity.setIsSaveKnowledge(isSaveKnowledge);
		entity.setKnowledgeTypeId(knowledgeTypeId);
		entity.setUserId(userId);
		entity.setStatus(status);
		return entity;
	}
}